﻿@model WebApp.Models.LogOnModelView

@{
    ViewBag.Title = "Connectez vous";
}
<script src="@Url.Content("~/Content/js/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/js/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<link href="@Url.Content("~/Content/css/style-logon.css")" rel="stylesheet">


<style type="text/css">

</style>

    @Html.ValidationSummary(true, "Echec de l'authentification. Veuillez corriger les erreurs et réssayez.")

    <div id="login">
    <!--<form action="Account/LogOn" class="form-horizontal">-->
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
            <div class="editor-label mail">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

            <div class="editor-label password">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
            </div>

            <p>
                <input type="submit" value="LogOn" />
            </p>
    }
    <!--</form>-->
   </div>
